package com.lee.lease.web.admin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lee.lease.model.entity.RoomInfo;
import com.lee.lease.web.admin.vo.room.RoomItemVo;
import com.lee.lease.web.admin.vo.room.RoomQueryVo;

/**
* @author liubo
* @description 针对表【room_info(房间信息表)】的数据库操作Mapper
* @createDate 2023-07-24 15:48:00
* @Entity com.atguigu.lease.model.RoomInfo
*/
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {

    /**
     * 根据查询条件分页查询
     * @param page
     * @param queryVo
     * @return
     */
    IPage<RoomItemVo> findPageRoomItem(IPage<RoomItemVo> page, RoomQueryVo queryVo);

    /**
     * 根据租约id查询房间信息
     * @param id 租约id
     * @return
     */
    RoomInfo selectByAgreementId(Long id);

}




